package homework.day03;

/**
 * @author ThinkBook
 */
public class Test07 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 101; i <= 200; i++) {
            boolean isPrime = true;
            for (int j = 2; j < i; j++) {
                if (i % j == 0) {
                    isPrime = false;
                    break;
                }
            }
            if (isPrime) {
                count++;
                System.out.print(i + " ");
            }
        }
            System.out.println(" ");
            System.out.println("101-200之间共有" + count + "个素数");
        }
    }

